package com.mxf.code.test01Plush策略;

import com.mxf.code.test01.Invoices;


/**
 * 计算抽象类
 */
public abstract class Calculate {
    public abstract int calAmount(Invoices perf);

    public int calCredits(Invoices perf) {
        return Math.max(perf.getAudience() - 30, 0);
    }
}
